add iOS7 support