Made delete button redirect to previous page.