Setting Conditions for "Select All" widget