added delay to preview, add media from window seems to work