updated dialog to panel