I have two popups. When a button on the first popup is displayed, I hide the the first popup and show the second one.
There is another button on the second popup which should do the same in reverse i.e. hide the second popup and again display the first popup. However, it is only hiding the second popup and not displaying the first one again.