Ensured layout constructor only executes once