merging code, display multiple "screens" of info on LCD

i know, i think i can merge them easily. but i dont know how to use the buttons to switch what is being displayed on the screen.