fix onBackPressed makes the application finishes everytime