Improve error checking a bit
Store reference to the list itself
Keep hidden input of item ID in edit form
Log messages to console too
Add edit all items mode