Arranged the layout of the main activity with the basic widgets.