Added mode switch

@xliiv please review.
Use ``.pull-right`` and ``.pull-left`` from bootstrap.