edit index and styles