generateForm now uses fragments to improve perfomance. Adds some CSS