added preview for documents, style index page