Changed layout behaviour in gui.