prepare a new layout