Copy function working + cut button with detection