Added action to search bar.