fix fucntion 'hide' bug

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