before filter for static pages