fixed offline issues in mobile and tablet