Auto formatting
Prevent additional instances of MainActivity from being created when one
exists on top of the activity stack.
Fixed bug which would never track a successful submission. Submission
succeeds on pressing submit.