All of these toggle functions could be collapsed into one and delegated with just one listener. It would prevent repeating this code a couple times.