First cut of a UIEventSystem
Added Dialog destruction functionality