changed to a dialog