Almost figured out how to dynamically resize the tree. Works but needs to redraw tree. currently working on method that doesn't rely on drawing the tree more than once.