fix double save and hide tabs