Use SPA everywhere except document/id
Update layout