improve logic check for action show