before using popup widget