state preserved for orientation change for main screen and opioid dialog