button handling subroutines in Events.pde