add delete history functionality