added function of delete
fixed with the style