simplifying popup template