Added onBackPressed override and an 'Are you sure?' dialog before quitting