added history to chat