add pages and modify index