add send method in $scope
add feature $scope.end, $scope.send, also test them