add pages and controller