updated ios app code