move panels controller to its own file; set up binding to selectPanelByName for controller