adding handling for search box and search page controller