using stacked widget to manage multiple views