Added functionality to set the panels via storyboard segue.