iOS: update screen when switching to foreground