fixes media dialog sync issues
fixes datepicker css ref issue