MainActivity upgraded