added stop search functionality