init popup after document prepared