improved template engine, finished viewArticle fn