When editing a class, cannot change the property mode

- id param missing when submitting form
- since the mode is not being switched on per property, Property mode button turned always enabled