Fix handling of routing mapping type change
Focus patter when adding route