added double back press for exit logic