index and styles initialized