added caption and comments to modal dialog