removed deprecated addCss method in favor of addResource