store model and layout