repair layout