allow toolbar button states to change when selection is collapsed