added maxheight to dialog