Toggle between two modal windows

I have a system where a user can share a task with his coworkers. The system was developed in a way where the share button opens a modal dialog with the option to input details of the user to share it with. If you click the number to the side of the share button, it will open a different modal dialog with the history of people the task was shared with.

I want to improve this flow to make the sharing process easier. I want to let the users switch between the two modals in an easy frictionless way, without damaging the current workflow.

Key points:

  • make the workflow faster and easier.
  • maintain the current solution.
  • do not get into a big development project.

Here is an illustration of the current process:

enter image description here

Thanks.