updated for select all/none