page title refactor