refactored to using services instead of nested controllers, removed unnecessary controllers and directives