fixed the static pages controller