added open/close option