fix fucntion 'hide' bug

Now, 'Close' button doesn't work because hide() funciton is not implemented appropriately.
I fixed this bug.