When we used click button for the open pop up screen, all the logic code does not work. But at the second time the code work perfectly.  