refactoring

increased interval
added UI fix for beforeCopy
moved common logic to afterCopyCallback and copyCallback
Merge pull request #157 from burgua/dev

refactoring
merging