replaced index and styles