1. fix bug: when the user press back button, and then re-enter the app, the app will crash.(dialog.show, invaild acrivity)
2. fix bug: the dialog would be displayed twice