Modify Layout,Adding a modal dialog