add action to template