We had a lot of functions and click handlers that were only involved with user profile modal and were not related to popovers logic in any way. So we extract these functions into a separate module `user_profile.js`.