Added comments to understand code easily(on history tabs pages)