Added text capabilities to switch, smaller size to fit other components
online property to rootScope for preparation of online component