update item form generation

the form now knows how to render enums