Added different working modes (none, edit route, ruler)