add modal dialog widget