bugs 1) RefrenceUndefined errors, 2) fired onAdd instead of onChange