edit layout and rebuild