Did a little reworking to toggleVisibility.