add SavedState in layout