Set selected group on $scope