fix issue of editing not updating input