added functionality to drawMessageTree