Updated main activity.