Synchronize the menu activation state with document meta data