fixes unclosed div in detailEdit