fix logic in fieldset selector
build rerendered option lists in template function