added listener for back button