Set up buttons. Added a few additional variables. Need to clean up button code at some point.