set css style appropriately