Patch the edit layout