Generic layout with swappable pane functionality