finish the advanced main boxes and the checkboxes