add function delete from history