uncheck sort checkboxes when changing states