change static_pages_helper method