fixed logic that determines when to display show/hide buttons on list page