updated template controller file to use Request:: object. delete action link confirms deletion