Fixed #10
Network view is now updated after changing selection.
Refactored code to use factory pattern to prevent exposing dependencies.