add actions in template