change type to button from submit