set up the layouts and buttons for three screens