Added onResume to main activity.