Added check for savedInstanceState