Added mode switch

@xliiv please review.
Use url tag.