adding animations and css bug fix