FIX last commit for edit form. Get dynamically the last id in the DOM.