start working on pages controller