Refactor and move code from viewer.js to secondary_toolbar.js