update delete function and CSS