Adds document modal and associated layout.