Fixed multiple toolbar layout and moved the BeforeRenderUI event to theme.js