updates modes for stylesheets