auto write data-sw-nav