Clean up main activity.