refactor list edit rendering