Made profile activity robust for connectivity problem still somethings needed to changed