Refactor windows 8 animation