Added dialog to show result. Left CoreData to store all history records