quick refactor for the checkbox list template for sensors