set up angular for main view