.onSetMod() implemented as a way to hook into modifier changes