added profile function
updated profile page code