refactored the edit profile page