moved tasks out of $scope to the dedicated viewmodel