Unable to use 4k display on ubuntu with nvidia drivers

When using nvidia card I cannot use two displays one in 4k and one normal(full HD), the scaling does not work. Tried with only the 4k display and that does not work also the scaling is off but besides that it only gives me 30Hz for the 4k display which is odd if I switch to Intel integrated card the 4k display is on 60Hz and also supports tow displays with different scaling.
But being integrated after some time it’s just not working anymore. I’d pretty much like to use the nvidia card.

Notes: I have an Asus ROG GL752VW with nvidia 960M