added scope. for hooking to close events in controller