refactoring title_url_by_user function