Implemented add wires on index view.
Further refactoring in the server code.