fixed onBackPressed issue