moved out createArticle from callback function