refactor user_goal and goal passed to user profile page