added history tab (with functionality)