update pages. create angularjs page app structure for main app