elgg metro dashboard

Wherever this code is in the super_dashboard.php <?php echo $_SESSION['user']->username; ?>

It does not show up on the site and some of the links don't work like edit profile, edit avatar, view files from user

for edit profile link is just http://mysite.com/profile/edit instead of http://mysite.com/profile/"whatever_user_here"/edit

/"whatever_user_here" should be replaced by the user logged in that wants to edit profile but it does not show up in the link it just links to http://mysite.com/profile/edit

same goes for everything that has this code <?php echo $_SESSION['user']->username; ?>  placed in the link.

I do use @mentions if thats the issue, what do I need to change this code to work <?php echo $_SESSION['user']->username; ?>

Here is the full code:

<a class="box" href="<?php echo elgg_get_site_url(); ?>profile/<?php echo $_SESSION['user']->username; ?>/edit" style="background: #43b51f;">
<span>Edit Profile</span>
<img class="icon" src="<?php echo elgg_get_site_url(); ?>mod/super_dashboard/images/phone.png" alt="" />
</a>