Hide and show the SelectAll button appropriately