Added more functionality to add connection popup. all done with that.