implemented muting and unmuting behavior