added the pages controller