cleaned up file and added static pages controller