made search textbox functional