refactor view with page title helper