fix for updating the publish buttons after something has changed