added a controller with two methods that emit open and close events to notify parents regarding state of search control