delete function and css