allow debug toggling
add debug mode toggle to debug page