Added select-all/deselect-all functionality