     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.$on("wikipage:add", @.loadWiki)
         @scope.projectSlug = @params.pslug
         @scope.wikiSlug = @params.slug
         @scope.wikiTitle = @scope.wikiSlug

            onSuccess = (wikiPage) ->
                if not $scope.item.id?
                    $analytics.trackEvent("wikipage", "create", "create wiki page", 1)

                wikiHistoryService.loadHistoryEntries()
                $confirm.notify("success")

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

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