add open / close  function.