Modified tree in window dialog to add bean