Fix bug with adding an item - missing event.preventDefault()