create controllers in the angular app scope, not in global scope