refactorization of the listEdit directive, work in progress