add animation on view change