adding animations on switch view