$scope.deletePost = function () {
        $scope.Posts.remove($scope.post._id).remote.then(function () {
            $state.go("home");
        }, function () {
            // TODO - make a modal