added node edit functionality