added search functionality to done button