add support for disabling/enabling checkboxes and toggling visibility of residuals at the same time