display selected element in the templates table