update api path, attempt to handle form submission instead of button click