make files_videoviewer more reusable