fixed search page code