adding logic for if no details with fancy animation