added functionality, search bar is cleared after search is performed