controller refactor for new select notes checkboxes logic