Registering the layout.