Adding to Main Window,Rewriting Layout of CreateDialog