update style in index