added tip history tracking