updated the animation and fixed the bug with list items