Simplify Animation Listener codes