Added more functionality to search page