fixed #5, rebuilding connect dialog, returned padding