init layout in plugin