Check unsaved tab before publish