Fixed the range and network views

Made class based views for range and network and fixed the dhcp detail view to
generically handle the edit button