fixed offline fragment message and orientation change