move document load tracking to main module
restore GalleryView.create
add initial functionality for gallery view