added more chatbox functions