ui state restoration support