update online and offline html files