edit style and index