moved render tag logic into UI.renderTags so it can now be easily used by any renderer.