Improve generic generation of tag form