tweaks to delete buttons and wrapped editor directive in template