change styles and set index list