Add open/close events