build the scope in the main controller