fixed the BUG! Causing the widget not to load the second time (It also
loads faster this time). Left some various unused code lying around for
future troubleshooting