move code from init to draw to enable key redraw