initalizing popup after display is added