refactoring pahe_title helper