add functionality to search box