1. fix error when exist app by pressing back button.
2. fix popup dialog when first time opening app.