fixup controllers and views to work with config