adding enter-leave animations for pages