fix tree scrolling and context menu