fix a bug of material-mode and add arrow to toggle among fieldsets