Fix debug page in options

Fix a syntax error & decouple the debug button & shown unfinished page
switches (another copy paste error).