Updated FormGenerator to use multiple buttons.