Add grid. Fix time-diagram repaint