write the profile page