moved css dict to client side