Pass reference to eventhandlers