fixed toggling for iOS