This requires: 1. Refactor into multiple files 2. Use bundling to use in widget 3. Figure out a way to automate this