layout behaves differently online and locally