move animation to onresume