temp fix for refresh of css engine on tab switch, state is now preserved properly