add switching animation