Close the details for works when adding a new work, this allows new work...

...s to be added to details correctly