use width given to create_dialog in modals