refactored view/page title declaration code in