Added logic for checkbox ALL