Add button types

Without types, pressing ENTER will always cancel instead of submitting as expected.