added the capability to add, edit and delete nodes