edit connection class