Replace horizontalLayout with flowLayout; add splitLayout