adds view and media files.