Updates weights and CSS