made toggle all one function

still have 2 instances of "click" that I want to consolidate but I cant
figure it out for the life of me