updated onResume in Main Activity