Added in code for video and dialog-polyfill