Added history to main window