add modal dailog viewer