adding the toEditRegistration so im not creating a new one everytime