Modify the behaviour of onBackPressed method