add animation for view