network: refactor code
network: update components for edit page