formatted coursepanel & connected to mainwindow