Added more flexibility on the main stack view controller.