fixed animation bug. afterview implemented