js dyn form work
add the mode switcher callback for the mode pulldown