set default template and viewer