implement delete template
fixed template reference
added token
auto delete and reference to delete page in edit page
delete button functions
proper ref attr
fixed attr?