modify way to generate submit button for add/edit form