Main document selection