It is better to store the pointer of the layout instead of its Id.