Added event listeners to toggles