Added onResume() method