fix popup bug, and update document