added an connection dialoge to the initActivity