Added event handling from tabs. Fixed bug in tabs soy - was not defining the tabs panel - only defined its tab.