changes in index and cart logic