Fix problem where sometimes ui.container would be referenced before it was created, due to our more aggressive loading.  This defers some methods until that variable is set.