connect tree with preview panel