updateUIVisibility