Added refresh graph button. Also adjusted refreshGraph() to also redraw
(the graph gets wonky if you don't do this but change layout/window
size)