changed window_main to play sound