refactor user profile page