Added angular view, factory and location promise