created slot code for all mainwindow actions