refactored responds out of groups controller