created controller for StaticPages
made tests and dynamic pages