Adding funcionality to the profile page