renders template for popup
template added for popup