modify the activity to let press twice to exit