load chatlog history when opening a chatwindow