Tidying form detail edit modal