I am trying to make some invisible elements visible using the following code. However, since I have added the while loop, the visibility changes will not show on screen.