Fix API controller bug
Fixes to API classes and simple settings page