new layout and initial state