Added callbacks in animation