Changing location controller and map controller to application controller.