Load UI components before document ready event