Add function to remove pages from search results