implemented template as function
fixed edit-toolbar template