add speed flash message and clean up upgrades.js