make mousewheel function local to the controls, instead of adding a global function