edit index and style