changing template in dialog box with drop down