moved some of the code from legacy/gui.js into the views; uncommented tooltip code in gui.js