Fixed the bug of multiple tabs opening up

the socket watcher was being created in the click function so everything
the button was pushed a new watcher was created.  This in turn created
multiple watchers