Integrate tree into modal.