fixed a bug with startchat opening multiple windows