update the error layout