This should be the final layout for the main activity. I also added some
of the needed global variables.