Adding some more chat and panel logic