Added functionality to search box