Refactor out the bottom segment into parts of a panel on the bottom of the screen.
Build a panel element and append to it.
Switch between the different panels.