fix grabbing hosts for tpl items as done for triggers in bd796fc
fix deleting triggers