Added double back button check