docs viewer checking for draft & subm

#218