partial script for checkboxes