Added ngSwitch to display content in activity view.