change settings-checkbox if-statement for multiple usages

New PR with only the needed changes, all checkboxes on the same site are now checked.