updated style and index