Fix custom_namespace synchronization issues

* do not modify class variables when rendering form
* use options to pass custom namespace