improved layout structure. Terrible rendering when resizing window