How can I program the submit button to do more than one thing?