updates and adds new pages