fix dialog size in demo