Here you forgot the add action on a zone.
Go back to this part.
handle the edit action clearly with a if (html.action == 'edit)

in the html.action == 'add' hande the to case : the container and the zone one