Updated to use query string parameter instead of localstorage for toggling robot mode.