fix copy content incorrection
fix delete issue
refactor code