getSettings function moved to AdminController, now settings are accessible from everywhere