Setup some preliminary methods and buttons.