Added alert after open/close action