adjusting popup template