Search page now works correctly