init for layout