Remove debugging code
Add settings variable to all views