Set some conditions when rendering actions