Added start activity code to the main activity.