added regex for dynamic rendering