How can I use the add and edit related objects from the admin in my own forms?

This below topic might help you, it also have similar requirements…