Make ui.js emit new-element for main container