Refactoring mainwindow in new class musicplayer.