Fixing several issues with custom actions on settings pages