Used "toggler" function , thereby reducing code (Stupid of me, :|, still way back but learning)