Added onResume method