Restructured index to avoid ngView + ngAnimate