Added small function of update Edit