still trying to fix ios device bug. Added alert