add pages and function