fixbug in detail,add delete function