fix crash app

fix crash app on network connect fail and orientation change
update reference to service