             onSuccess = (wikiPage) ->
                 if not $scope.item.id?
                     $analytics.trackEvent("wikipage", "create", "create wiki page", 1)
+                    $scope.$emit("wikipage:add")
 
                 wikiHistoryService.loadHistoryEntries()
                 $confirm.notify("success")

    constructor: (@scope, @rootscope, @repo, @model, @confirm, @rs, @params, @q, @location,
                  @filter, @log, @appMetaService, @navUrls, @analytics, @translate, @errorHandlingService, @projectService) ->
        @scope.$on("wiki:links:move", @.moveLink)
        @scope.projectSlug = @params.pslug
        @scope.wikiSlug = @params.slug
        @scope.wikiTitle = @scope.wikiSlug

        @scope.$emit('project:loaded', project)
        return project

    loadWiki: =>
        promise = @rs.wiki.getBySlug(@scope.projectId, @params.slug)
        promise.then (wiki) =>
            @scope.wiki = wiki
