Started to works with $scope