refactoring user routes page