added type attribute to buttons to prevent form submission