move animation promise to view