used css class instead of inline style for colors