Added delet method got working using Ajax.