code style
catch error on creating uiState objects