add ui, save chat history in gchat server