Move functions(updateFullscreen, updateCodeview) for frame mode to `toolbar.js`.