cleanup animations and handle multiple searches