fixed the edit registration modal. used a private method for rendering the layout