Re-layout after all contents on the page have been loaded