updated services

added method to save chat history