adding a split function and changing chatbox height