add switch mode for angularjs view and normail view