implemented recursive checkbox toggle
refactored some stuff
checked feature, autopep and rename variable