fixed addbuildingwindow and addtenantwindow