alternative way to enable live preview