updating public controller and trying fix problem with FK's