Create panel controller to control show/hide item detail