reset overlay and add ref.