View-mode as a default hook for doc