extract appendVersion from view.js to workspace.js