fix add new unitLayout form bugs.