Committing before I delete the modal view controller