Add before filter to static pages controller