global factorisation

code factorisation and new sections in document view