added savedInstanceState check
changed minSdkVersion