Refactoring and improving user pages