Created the functionality of editing nodes