basic modal flow for adding an endpoint