structure mode off handler with unbinding of events