add custom switch control