added pages controller
last changes after tutorial