Added functionality to search page