added proper redirection for ddelete