add Pages controller
add integrations tests
finish pages