No need to prevent the default action of the form, both functions can sit side by side