changing Layout for dialog windows and wizard windows + resolving bug with modal windows.