new Function created onBackPressed() after press back button it will go to index page