history tab and data structure implemented