updated the toggle to use websockets
reorganized routing and cleaned up AdminpanelHandler.py