add published or not doc and view type