Added a very basic main menu.

Cleaned up checking for scroll up and scroll down.