Added scrolling to the tree element on object click