update latest_visited