Setting up preview and hooked console log