changed to delete individual deselected files instead of clearing all before saving