changed checkboxes to switchbutton