fix publish button status after widget save