Added history viewing in main view.