Moved the copy buttons into modular code