added main window and command functions play/pause/resume/stop