correctly set ui state for widgets