add pages and update