made tags and cat markup output only when there are tag/cats