refactor method in wiki_api. Make app wiki agnostic