Finalized the menu system (added ability to properly update menu and state when scrolling the page).