Attempted to run the flask app and the polling funciton on multiple threads. Didn't go so well. For some reason the dashboard isn't updating until I Ctl^C the program.