Instead of always having to include the button to open the modal, create the modal and all its contents, you can dynamically create the modal and load the route of the content you want to open in a very simple way. This allows you to still display the ever updated data without much effort in editing cases.