added type to button to prevent form submission