fixed name in network detail view to show ranges contained in a network
moved the build logic into the models