Added search function to all pages