added an option to save and publish when posible on dataobject