fixed css processing and removed debug lines