Committing before changing the HistoryViewController from a normal view controller to a table view controller.