migrating to new generating method that fixes issues in chrome for windows.  Added loading indicator.
resetting flask run statement to work on production