add demo for dialog and grid