Fixed sound mute check box bug. Refactored events.