GUI event functions should pass around their control so that you have access to it from within the function