setOpen function rename to setGateStatus