Set layout every time a new pane is created