apply master page to all pages
delect unnecessary pages and create search pages