modified twitter app for handle network error