created permissions controller to handle checkboxes
now group permission checkboxes are unchecked upon clicking corresponding custom ones