refactoring views animation