updated showcontroller to use a more standard public function