Added ability to rotate the main screen.

Now, when the main screen rotates, it still has the buttons in their
correct locations.