Optimization modifications

Changing some CSS elements to increase the performance on the redrawing
elements.