UI state is defined as a mostly consistent user interface shown in the window level, reflecting a specific piece of program functionality . An example of a UI state is a login window, in which the text content may change but the overall layout and functionality remain the same.