Work in pages controller