Fix online/offline layout