I figured it out myself. I had somehow set the partition to MBR rather than GPT when I initially installed windows. Formatted the SSD, set partition to GPT and now the laptop is able to boot via UEFI and go straight to the SSD. If you use MBR you have to set boot mode to legacy mode.