set button type to avoid form submit when buttons clicked