add loadDesignDocument function