First thing, don't use the tap gesture, it is unreliable. Use on tap instead.
Secondly, for a toggle, you should use sub events under a single trigger, and use the else condition. Otherwise the second event will run at the same time as the first event. The event sheet runs top to bottom, so the first event results in the condition for the second to be true and the second event cancels out the first.