Added onBackPress() and it is working again as expected :P. Also fixed the onBack() problem that ramesh had found