Add intermediate class "Contained" to ui hierarchy
Add event handling skeleton to ui code