Changed from dialog to stacked widget