I followed instructions for uninstalling ubuntu from windows and repairing boot manager using windows USB Drive.
Repairing the boot manager didn't work, so I followed this answer. It helped and now windows boots normally.
After this, I went on with a new installation of ubuntu. I hoped it would install new grub and everything will be fine, but still my computer boots to windows.
Also, the strange thing is that the new hard drive doesn't show up in boot order in UEFI.
I know I am missing something.
Could you Please help me?
I can't find proper answer in their Internet regarding ”uninstallation of ubuntu -> proceeding to new installation”. Almost all tutorials help you never come back to ubuntu