Hook up the input buttons to the form submission