moved styles to header to stop redraw on each pageload