added method for rendering tags in layout