remove unused code from user profile page