Implement history in new ui