changed logic of selected template, showing correct templatetitle,
removed selectedtemplate title and id