changed mainwindow to gridLayout, used QDockWidget for Panes