improved network graph page logic