implemented edit node in realm