Set previous submission to pending after unsubmit
Merge pull request #1185 from stevenwu/unsubmit-bug

Set previous submission to pending after unsubmit