Added functionality in the profile page