# Migration guide 1. Rename `cool-widget.js` to `great-widget.min.js`. 2. The `footer` tag should have the `widget-container` attribute, as in the following example: ```html index.html // [!code word:widget-container] ``` 3. Set checkStat=true attribute for all buttons, , so widget can collect the click statistics. 4. To enable advanced options insert the following code into your `index.html` page at the bottom of the page, right before the closing `` tag, as in the following example: Note the catch block for advanced mode errors: ```js index.html }) } catch (e) { // [!code highlight:4] // handle errors here console.error("Great widget not found!"); } ```