paths working, trying to check whats wrong with polyline drawing
fixed bug of $scope.$apply