deleted the record through ajax