wait until animation is done before switching accounts