update onBackPressed()