fix hiding and unhiding of custom actions