As per #3, made the plugin listen to the search event as well