add hook for dat.gui events