Added methods to mute and unmute events and listeners