update tree filter plugin to include filterBy functions