updated index code - fixed carousel problem