application now works in offline mode