add put legend in treepicker