fix bugs;will open again just after close a popup