stopped adding css stylesheet when context changed