partial fixed for the onbackpressed()