add staticpages controller
fix staticpages, add tests