changed the way styles are loaded