Remove unused function + fixed bug when creating a node that has preview on by default but the previews are toggled off generally