Fix action buttons display logic