add StaticPages controller
add test
include tests and refactor