refactoring to use dto on ,y profile page