Move the popup template to a separated file