add media css and fix for ui-dialog-titlebar and close button