The edit and add functions have been rewritten (edit on a different page, and the user can add only one entity every time).