Wiring up open and close