(master) refactored some code to make it faster and clarify method names
(master) esformatting
(848---speed-up-checkbox) fixed checkbox toggling related elements