make it easier to use view functions with staticPages