Support for complex layouts when saving the application state