add update hook for carousel