added handler for backButton