Now the app does not lose information when there is an orientation change.