moved initialisazion of highlights and redrawTimeout on top of plot