Added the delete functionality based upon Jquery