Toggle action buttons based on whether there are any selected rows.