Better method for passing mouse handlers