updated how chat box works