added a staticpages controller
fixed bug
ch. 3
finished static pages