changed mainactivity and added network tcp