save/restore view mode and embedded css mode