data on orientation change

working on saving and restoring data on orientation changed.