Refactored profile page to use partials