allow the d3 tree wieghts to be modified by the user, nearly working