implemented add and edit connections