Closing the lid should do nothing but the display should turn off like window’s do nothing

I just upgraded to Ubuntu 18.04.2 LTS and figured out that there is no option in settings to change the closing lid behaviour. However I tried the command line method from the answer here

HandleLidSwitch=ignore worked successfully. But ,this thing doesn’t turn off the screen like it happens in windows.

Keep the System running but turn the screen off when the lid is closed.