Add argument to allow conditional selection of action buttons.