Added controls to the main activity.