added view animation for view changes