fixed chatbox bugs, it now works