adding pages controller