Fixed dom issue in edit form