Came up with a much nicer solution to handling when a form is finished submitting
Cleaner approach to resetting button