Added HistoryViewController, segues, and History View dismiss view function.