implemented select all and select none.