two-pane layout now working perfectly