set up general framework for the site, and also set up the click functions for the buttons