refactoring page_title helper