add selectAll and unselectAll API