save complete state in onPause and added randomize button