Fix bug where settings button no longer worked

Fix bug where settings button no longer worked
Removed old code/debugging

Removed old code/debugging