Create a template for the pop up dialog