added animation to the index