fixed bug in the layout when no internet connection is available