$rootScope.Channels.insert(channel).remote.then(function (id) {
            $state.go("channelEdit", {channelNameOrId: id});
        }, function (err) {
            console.log(err);
        });