added editing feature