Added some preview only code

Code not tested
hotfix for beta sensor
hotfix

fixing broken stuff, I can't test this on my computer so I'm using the
webhost as a test bench
Fixing auto sensor
Conflicts Resolved

Resolving conflicts with master branch