fix style bug and add copy feature