handles the edit profile page