pushed button press code to global methods

shortens main draw() code and prepares to invoke the same code in
response to button presses later