refine code style
remove the ctrl switch option