Adding trash button to templates