added layout destroy after leaving, and back button behavior to double click for exit