implemented delete function in data view