update error layout.