refactoring

increased interval
added UI fix for beforeCopy
moved common logic to afterCopyCallback and copyCallback