Toggle switch vs other solution


In my project I’m redesigning a search engine. As a default user is working in a Search mode, but when it turns out something does not exist a user can quickly change to “Create new item”.
Requirements:

  • desktop app
  • choices are mutually exclusive
  • the selection take effect immediately

I had segment controls but it evolved and right now my mockups show:
enter image description here

The toggle switch I have will immediately change the card on the window. So I decided to have the same green button in Search mode and Create mode.

Can I have a better design?