Set layout every time a new pane is created
Add tests for new select-layout feature