the layout should only be loaded once the DOM is ready