Added CSS appender and fixed race condition

Fixed race condition for layouts vs styles