replace controller method with application_helper method, put page names in views