renamed register methods in mainwindow