display_select_template and display_template_create functions cleaned