(SOLVED) Code not working when previewing from dashboard

No worries about it as you have raised the issue that the previews are two different varieties when in fact they should really be exactly the same, or at least mentioned on the dashboard preview that it is just a basic read only type of preview and nothing will actually be workable etc.