added static pages controller and got pg working