changed the layout for dialog