created an input template, created editListItem function and moved the hiding of label into it