added functionality to search toolbar